package cn.ticket.model;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Workbuses {
    private Integer id;

    private Byte orientation;

    private Date departuredate;

    private Date endbusdate;

    private Short seatscount=13;

    private Date validitydate=new Date();

    private Short auditingcount=0;

    private Short auditedcount=0;

    private Short occupation=0;

    private Short routeid;

    private Date adddate=new Date();

    private String other;
    
    private Boolean isneedaudit;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Byte getOrientation() {
        return orientation;
    }

    public void setOrientation(Byte orientation) {
        this.orientation = orientation;
    }

    public Date getDeparturedate() {
        return departuredate;
    }

    public void setDeparturedate(String departuredate) throws ParseException {
        this.departuredate = new SimpleDateFormat(Constants.DATEFORMAT).parse(departuredate);
    }
    
    public void setDeparturedate1(Date departuredate) {
        this.departuredate = departuredate;
    }

    public Date getEndbusdate() {
        return endbusdate;
    }

    public void setEndbusdate(String endbusdate) throws ParseException {
        this.endbusdate = new SimpleDateFormat(Constants.DATEFORMAT).parse(endbusdate);
    }
    
    public void setEndbusdate1(Date endbusdate)  {
        this.endbusdate =endbusdate;
    }

    public Short getSeatscount() {
        return seatscount;
    }

    public void setSeatscount(Short seatscount) {
        this.seatscount = seatscount;
    }

    public Date getValiditydate() {
        return validitydate;
    }

    public void setValiditydate(String validitydate) throws ParseException {
        this.validitydate = new SimpleDateFormat(Constants.DATEFORMAT).parse(validitydate);
    }
    
    public void setValiditydate1(Date validitydate)  {
        this.validitydate = validitydate;
    }

    public Short getAuditingcount() {
        return auditingcount;
    }

    public void setAuditingcount(Short auditingcount) {
        this.auditingcount = auditingcount;
    }

    public Short getAuditedcount() {
        return auditedcount;
    }

    public void setAuditedcount(Short auditedcount) {
        this.auditedcount = auditedcount;
    }

    public Short getOccupation() {
        return occupation;
    }

    public void setOccupation(Short occupation) {
        this.occupation = occupation;
    }

    public Short getRouteid() {
        return routeid;
    }

    public void setRouteid(Short routeid) {
        this.routeid = routeid;
    }

    public Date getAdddate() {
        return adddate;
    }

    public void setAdddate(Date adddate) {
        this.adddate = adddate;
    }

    public String getOther() {
        return other;
    }

    public void setOther(String other) {
        this.other = other == null ? null : other.trim();
    }
    
    public Boolean getIsneedaudit() {
        return isneedaudit;
    }

    public void setIsneedaudit(Boolean isneedaudit) {
        this.isneedaudit = isneedaudit;
    }
}